<template>
  <s-layout
    title="代理公司入驻"
    :bgStyle="{
      color: '#FFFFFF',
    }"
  >
    <web-view :src="url" @message="bindmessage">
      <cover-view class="cover" v-show="currentPages !== 1" @click="returnPage"
        >返回上页</cover-view
      >
    </web-view>
  </s-layout>
</template>
  
  <script setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
const url = ref('');
onLoad((options) => {
  console.log(options);
  url.value = options.url;
});
const returnPage = () => {
  uni.navigateBack({ delta: 1 });
};
// 监听H5页面传递信息
const bindmessage = (options) => {
  console.log(options.target.data); // h5页面传递信息只有value的数组，比如 ['不要骚扰我']
};
</script>
  
